/*
 * @Description: 三维扫描数据接口
 * @Author: Liu Kunpeng
 * @Date: 2021-07-14 19:41:20
 * @LastEditors: Liu Kunpeng
 * @LastEditTime: 2021-07-19 20:09:56
 */
import request from '@/utils/request'
//获取所有病人信息接口
export function getAllPatientsApi(queryInfo){
    return request({
        url: '/admin/organization/patientthree/getAll',
        method: 'get',
        params: queryInfo
    })
}
//下载PDF接口
export function downloadApi(id){
    return request({
        url: '/scanning/downloadFile/downloadThreePdf/'+ id,
        method: 'get',
        responseType: 'blob',
        onDownloadProgress (progress) {
            console.log(Math.round(progress.loaded / progress.total * 100) + '%');
           }
    })
}
//Excel数据接口
export function calculatedDataThreeExcelApi(data){
    return request({
      url: '/admin/statistics/threeExcel/count',
      method: 'get',
      params: data
    })
  }

export function downloadBatchOriginalThreeZipFileApi(data){
    return request({
        url:'/scanning/downloadFile/threeZipFile/downloadBatchOriginalThreeZipFile',
        method:'get',
        params:data,
        responseType:'blob',
        onDownloadProgress (progressEvent) {
            console.log(Math.round( (progress.loaded / progress.total).toFixed(1)*100) + '%');
          
           }
    
    })
}

